Corrected Arduino 1.0 compatibility