Switch from Thread.sleep to a BlockingQueue

Signed-off-by: Jack Huey kitskub@gmail.com