Templates to the rescue