Reorganize code to work with Arduino IDE