Update code for hardware