Added utility code to check linksets