Made further revisions on removeAuthority function