Added level cap check