Connectivity is now a template parameter.

This makes more information available at compile time.