Avoid thread locking