Reduce number of calls to pretty_print thus improving speed 4x in some cases