Fixing threading issue with object processing.