Fixed to use waitForMixed() instead of Thread.sleep()
Merge pull request #144 from myui/hotfixes

Fixed to use waitForMixed() instead of Thread.sleep()