Added some function pointer validation