Added a log to the simulation and changed output to machine readable code.