Template match permissions.  Tidy template