Made revisions on removeAuthority function