Update sumDisplacements

Complete rework of import assignment of values.