Pre-processor for the RGMS project.