Optimized dc.py. Added 'no-exit' parameter.