Added code to output empty list items, needs testing