Add contiguity-simplifying interface

Needs testing.