#56: Changed from using "this" in template XML to using "model".