Allow ttl as proc