Improved our simulation work loop (#112).