Finished the new preferences controller and communicating back to the main program.