Switched to using d3.timer.