Add generation of function pointer