Refactored the displacement function