(2)Subject to the control of the Director-General and Inspector- General, such Police Officers shall discharge police functions connected with the administration of railways situated within their respective charge, and such other functions as the State Government may from time to time assign to them.