Modify auth level checking to take less place