The fire spotlighted a complex collection of local, state and federal laws. New Jersey's Department of Labor and Industries inspects the safety of rides, such as roller coasters and ferris wheels. Locally, municipalities enforce state and local building codes governing fire safety and electrical wiring. In turn, the state's Department of Community Affairs is responsible for ensuring that municipalities enforce the codes. Finally, the federal Occupational Safety and Health Administration (OSHA) is responsible for monitoring employee safety. A state panel investigating the fire said that the regulatory system had failed at almost every level, and that the Haunted Castle had been in violation of a dozen state fire codes.