Cleaning up link iteration. Adding and fixing thread yield test.