Added template masking script