Added code for keeping the connection to the AVR alive.