Began work on permissions (WIP)