Cleaned up perms, added op-only mode, stuff