Changed the level enum to a struct int value.