Better printout to monitor memory usage