Added time and added loop to send 1000 bytes