Added debug info to controller