Fixed wrong parameter and added print to ttl.