Finished thread matching implementation