Changed searching in array