Distance matrix builder in process; small changes