Added scalind and subsetting