Extend SP to support N-dimensional topology