Updating template to externalize the dependencies.