Added the new accounting model and a tad of logic in the controller.