Try set up main loop to get a determinist sim