Added support for function.