Made a rookie mistake in the threading - fixed it