DMF for chemical refinement