Removed tmpLevel