Fixed position of reducing the array, otherwise the relevance parameter would not be used correctly