Make access requirement code a bit cleaner and more reusable
Add user permissions, in addition to keypair permissions