Got simulation working