Added a class wrapper for global functions
[stub] Added a stub cancel callback