Added option for subselecting indices