Merge rgsimulator.