Added indexing method to pipeline