Variation of the standard Arduino sketch