Simplifying the main loop as it does not depend on the DM.