Got the base template completely split out. This should be more reusable now.