Refactored up command a bit.
Fixed some trailing newlines in the sane up output.