Initial syncTime() should be after pin initializations. Fixed it.