Replaced use of filter with indexOf.