Trying to cleanup some bugs in SearchLog and Main.java.