Refined templates