Fixed version of consolidate