Moved send() function.