Replaced while-Loop with WaitForStatus-Call using a timeout