Added synchronize() method