Implemented time simulation in the open loop as well.
Modified the way the simulation loops are being called.