Log File updated and Leak fixed