Added support for function pointers and memory buffers.