Added level validation