Fix the bug in setting ttl state. Added new API from version 1.3 for dac thresholding.