Updated nice printing function.