Initial, unfinished version of PID-controller.