Added support for array functions.