Handle sliced connections. Fixes #126.
Merge pull request #135 from ctn-waterloo/fix-sliced-connections

Handle sliced connections. Fixes #126.