Some debug code removed from the item controller