The Secretary of State , the Welsh Ministers or the Scottish Ministers—
The Secretary of State , the Welsh Ministers and the Scottish Ministers shall each have power to enter into agreements under which an undertaking is given by him or them—
In this section—
"franchising functions", in relation to the Secretary of State , the Welsh Ministers or the Scottish Ministers, means—
(a)any of the functions of the Secretary of State or of the Welsh Ministers or of the Scottish Ministers under sections 17 to 19, 23, 24, 26 to 31 . . . above;
(b)any power conferred on the Secretary of State , the Welsh Ministers or the Scottish Ministers under or by virtue of section 1(2) of the Railways Act 2005; and
(c)any other functions of the Secretary of State , the Welsh Ministers or the Scottish Ministers which relate to the provision of railway passenger services, or the operation of additional railway assets, under or by virtue of franchise agreements;
"franchising functions", in relation to a Passenger Transport Authority or Passenger Transport Executive, means any functions conferred or imposed on the Authority or, as the case may be, the Executive under or by virtue of section 34 above;
"railway investment" means investment in assets for use in the provision of railway services.