When the Caledonian Railway reached the town from the east in 1905, a non-encroachment agreement was activated and a few miles of line from Darvel to the Lanarkshire county boundary was transferred from the CR to the G&SWR.