Mapping generator restarts mapping if command of a different type is received.