Add synchronization to some methods