Fifth attempt to create thread-safe extension