More of the prettify implementation