Changed the level size check