Removing useless printf()s