Handle sliced connections. Fixes #126.