Before merging error and weights thread