Update MainThread.java