Adding slightly debugged microcontroller code.