Simulation seems to be working, needs further testing.