Finished main sim loop