Set --deployment-size in attributes
Fix to large template; move #template_file method