Adding ttl feature