Refactor d3_resume as much as possible.