Some updates to arduino code