Further development of the rate controller. it compiles now.