Fixed simulation length end time bug - tested