Added type checking for level