Data sending function finihsed