Thread safety

synchronized on this below.