Refactored the party command's output