Finish implemting check_access.

Needs testing...
Start restricting access.