Moving logs cleanup at the beginning