Added pansort step to generaterainbows.