Added basic template support.