Somewhat working simulation with dummy control logic.
Simpler more sensible and somewhat working simulation.