Initial, rough version of simulation is working