Added ttl stuff to handle ip.