Move collation code to Main.java.