Removing excess variables.
Scalable collect, only one element contributed by every PE. Does not check for other cases.