Some error checking
Flags.