Added ability to write out contaminations.