Improved setTpl for chaining.