Not thread-safe. Although we kind of guarantee code is not required concurrently, this doesn't seem to be a robust solution.