DMF for controlled release formulations