Fourth attempt to create thread-safe extension