Working arduino Version