Removed unnecessary awaitIdle.