Created the list all function and command.