Fixed redundancy problem, and added a print in recoder