Reworked the template to make it easier to add plugins to the map.