Use tags correctly when set as a function.