Added an object for thread synchronization