Wrote some code for the hardware control panel