Simulation in 3D now working.