Moved PID controller's related code from Realizer to Controller.