In 1812 the Middleton Railway became the first commercial railway to use steam locomotives successfully. John Blenkinsop, the colliery's viewer, or manager, had decided that an engine light enough not to break the cast iron track would not have sufficient adhesion, bearing in mind the heavy load of coal wagons and the steep track gradient. Accordingly, he relaid the track on one side with a toothed rail, which he patented in 1811 (the first rack railway), and approached Matthew Murray of Fenton, Murray and Wood, in Holbeck, to design a locomotive with a pinion which would mesh with it. Murray's design was based on Richard Trevithick's "Catch me who can", adapted to use Blenkinsop's rack and pinion system, and probably was called "Salamanca". This 1812 locomotive was the first to use two cylinders. These drove the pinions through cranks which were at right angles, so that the engine would start wherever it came to rest.