Preparing for templates