Implement flags.