Created a new public function called send.