Updated arcDir algorithm