Make loop end move with sample end