Change tmpl to be sent in as a variable
Added new file sizes