appended sum to list_to_redirect
Used json help to make redirecting work(?)