Added send data function.