Putting controller learning into its own file.