Made endPoint movable