Flag maintenance.