Some flag tweaks. Use same name scheme as permissions. Also added deposit permission.