Make some changes to Arduino code