Allow timeout to be set at runtime