Why are you using a busy loop that basically does nothing other than consume processor?