Cord locks work well for keeping lanyards at a designated length or to keep ID badges in a stationary place on the lanyard.