In solution-merging function, added logging to console.