Remove print statements from loop