Changed waitDuration into known configuration method