Added sending function