Template recovery