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