Added add_principal and remove_principal methods