Create function to send frame