Refactored active buffer count code
fixed handoff to sleepDelayed