Joining threads does not take generations into account

Addresses issue #3