It actually does something now. Using crude greedy algorithm.