Switched to using bitmasks as a replacement for "perms" and cleaned up some things.