Made library suitable for Arduino IDE