Added support for list functions (see #1137)