Adds support for slices.