Switch back length and sum to be accumulating