Fixed up the template to add better dependencies