5am commit. Simulation possibly functional.