Moved genetic algorithm for activity list optimization into separate file/module.