Update for new template API in 0.0.23.