Added a parameter for protected/unprotected