Update MainCore.java