First commit based on meanSquaredDisplacement