Added code for pot control loops.