Thread-safety has been removed, as it has not been verified to actually
work. It also made the code harder to maintain. But it might be added
correctly in the future, should a need for it arise.