Change this to work on the template itself, no need for the StringBuilder, and remove the is32bit parameter and use Options.