Changed pretty_print to module local function