Change more flip mapM_ to forM_