Clean up. Move process into sep file. Move syntax tests into sep file.