Added timer1 handler for sending