Added more methods to the controller. Fixed a bug in the processor.