Methods and devices for the treatment of cardiac valve dysfunction through the placement of lines and anchors. The lines and anchors can form artificial chordae between valve leaflets and the ventricular wall or papillary muscles or connect the two valve leaflets together. The methods and devices offer a mechanism for performing this technique with the heart still beating, and allows for the placement of multiple lines with a single device.