Updated way of outputting to not use a list and a loop.