Add pretty printer function used for debugging