Cleaned up for loop to display in one line