Refactoring concurrent code. :fallen_leaf: