The controller for TouchMagnet