States & stuff. Got a working simulation loop for 1 slave