Worked on consolidation logic. Improve logging