 The first 25 were constructed at Nine Elms Locomotive Works between March and November 1897.Thereafter the M7 class had a long production run with five major sets of design variants.Between 1897 and 1899 the locomotives were constructed with a short overhang at the front, and sandboxes combined with the front splashers.