Added AVR code