Move setHZ() calls to Main.java.