Some more pretty printing, handle joins and leaves