Refactor and autojungle.
template
Clearer code on cd timing.