Output for --view-all and --last-X is formatted in tables. Ugly code, needs refactoring.