There are various theories about the derivation of the term, but most refer to the "dancing" movements of the workers using a specially manufactured 5 feet "lining" bar, which came to be called a "gandy", as a lever to keep the tracks in alignment. [