added Option to use a distance file as opposed to a position file