Result of automatic code generation. I will remove synchronized. Didn't notice it.