Log added, fixed synchronized blocks