Refractored linkSpeed method