Templates and weighting