Added function for pretty-printing entries