MAYWOOD (AP) — Police say a North Jersey man added more than eggs and flour to a birthday cake and nearly set his house on fire.

Mayowood police cruiser (Cliffview Pilot)

Maywood Police Chief David Pegg tells the Record newspaper that police and firefighters responded to a house fire Sunday and were met by an angry man who demanded they leave.

Pegg says that the unidentified man started yelling for his wife for calling fire fighters to the house.

As an officer talked to the resident, whose clothes smelled of gasoline, Pegg says the details of what was going on came together.  The man was trying to make the cake burst into flames with the added ingredients of lighter fluid and gasoline. He was apparently trying to tape the burning cake so he could post it on YouTube.

The man “was able to extinguish most of the fire before the Fire Department arrived and felt it was unnecessary for them to even be there," Pegg told the Record.

The fire was contained to the kitchen table and authorities say the incident didn't appear to be criminal.

(Copyright 2015 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed)