It works by monitoring the person who issued the command and creating "way points" based on the distance and direction the leader has traveled. Then it runs through each way point. Thus it can follow the path the leader took around corners, instead of following in a straight line like /stick would do.