Merging with main thread