Fixed issue with pins, updated setClockTime API