Fixed export error in send and fixed duplicate function.