Updated to compile with arduino version 1.5.2