Added support for own template
Fixed wrong variable