Added inefficient functionality for debugging
It allows to render every merging step to files