Tried and failed to make mapping threads recursive