Fixed an idiot bug with ! signs in the flags.