Slightly changed code for Arduino 1.0