Properly invoke provided callbacks in proxy

The previous version did not properly use the provided callbacks to return the result. This caused the version to not be returned.