Reorganizing and removing cycles.