Railway Group Standards (RGS) are produced in accordance with the railway group standards code. The purpose of RGS is to facilitate the management and operation of the shared system that is the mainline railway.