Added support for slices