Fixed #13 and updated nullifyThreshold