Updating arduino code to current.