Update template and core.