Simple preprocessing code.  Able to run over test data.