Actually do control loop; Fix issue #1.