Code related to access control.