Fix for #129 Added Thread.sleep