Refactor send()