Added list and listby functions.