Resolved multithreading issues when modifying collections and tables