Remove unnecessary print code