Fixups.
Validate modes.