Try to break out the pretty style into a function.