Prints list in console when list is requested.