Move bootStrap/distance settings outside thread