Improved way to add in a scope to a template