Extracted  send functionality into helper function.