Enforced thread safety