Added support for functions without arguments.