to use of backstocked parts. Present operations Most units are owned by Porterbrook, although units 170416–424 are owned by Eversholt Rail Group. They are leased to the train operating companies. ScotRail ScotRail is the largest operator of the Class 170, with a fleet which formerly comprised 55 3-car sets but has been reduced to 30 sets. All units are allocated to Edinburgh Haymarket depot. The first Class 170s in Scotland were 24 units built for ScotRail (National Express) between 1999 and 2001 (170401–170424), which had first-class accommodation for use on ScotRail Express services (i.e. the Edinburgh–Glasgow Queen Street shuttle) and Aberdeen/Inverness–Glasgow/Edinburgh services. A further ten similar units (170425–170434) were built in 20032004 to complete the conversion of ScotRail Express services from Class 158 to Class 170 operation. By the time the second batch entered service the franchise had passed to First ScotRail. Two standard-class only units were provided for Strathclyde Partnership for Transport (SPT) services from Glasgow Queen Street in 2001 (170470–170471), followed in 20042005 by seven more units for SPT (170472–170478) and 12 similar units for Edinburgh commuter services (170450–170461). In December 2008, six of the standard-class-only units (170450–170455) were fitted with first-class sections, and two more (170456 and 170457) were fitted with first class in December 2011. A further four three-car sets (170393–170396) with first class accommodation and 'mini-buffets', were obtained from Hull Trains in 2005, bringing the First ScotRail Class 170 fleet up to a peak of 59 three-car sets. The former Hull Trains units were initially used on ScotRail Express services to Inverness, but by 2012 the buffets were out of use and all four units were converted to standard class only. The nine units built for SPT services were delivered in SPT livery, whereas the rest of the fleet carried First ScotRail livery (170401–170424 having originally worn the National Express ScotRail 'swoosh' livery). In September 2008, the Scottish Government's agency Transport Scotland announced that all ScotRail trains (including from the Strathclyde Partnership for Transport) would eventually be repainted in a new blue livery with white Saltire markings on the carriage ends. In April 2015, the ScotRail franchise passed from First to Abellio, and the 9 units owned by Eversholt went off-lease. Five of these units (170416–170420) remained in Scotland on short-term lease to Abellio ScotRail (albeit with ScotRail branding removed) until their transfer to East Midlands Railway in 2020, whilst the other four units (170421–170424)