Changed the way we parse flags.