Changed thread sleep placement.