Refactor some common code and properly name some of the clip variables.