Cleanup flags