Code for fits, 'clean'