Allow specifying own callbacks when calling functions