Added template's extension restriction possibility.