Attempting to prevent potential threading issue.