Few changes on writing simulation results