Change SendEvent to take argument instead of use Function arguments. Then, add support for a result callback.