Neaten up ordered covering algorithm.