Added admin level check function