Added special handling for results that are arrays.