Reverted code for use with the SOAR simulator.