Added synchronised methods and logging
Added synchronised methods and logging