Added synchronize method