Accept -ttl
Handl -> Handler
Extract to function