Building codes require ceiling fans to be mounted on special fan rated boxes to prevent the fan from falling due to the movement.