Added support for function pointers