Small tweaks to arduino code.