Merging from tempalte