Added callbacks and function pointers to callbacks