Implemented addXO() in the controller.