SImplified the various parsing and conversion helpers.