Create sendResult method