Reconstruct template