Added a decelling function for the moments file