Added privilegeCheck method