First commit - Edited sim-outorder.c to support new options