Updated template to use transforms where possible.