Added the Kalman agent code.