Fixed up Config.java, removed duplicate code.