Open loop and close loop control