Some changes introduced to the movein_modularity. It now runs
twice as fast. yet to see if fast enough