Add consolidation functionality[#389]