Set duration and timeout before service lookup.