Added log finish from java file. Log generation works better.