New render template tag, code improvements.