Added control loops