Starting template generation