Completed first version of preprocessor.