Third attempt to create thread-safe extension