Added more synchronized blocks.