Removing excess print statements