Abstracted ttl and state/threshold building into a separate function that runs a check fn