### Type Refactoring ### Description Shared object functions don't use type declarations, could lead to race conditions as they need to acquire a lock to change the values. ### Additional context _No response_