Moved external template out into new file.