There's a bug here, ttl isn't always args[1].