Revert "Take out the list function"

This reverts commit be7dfd05b3e76a40d86efd12b86780784813e004.