Digitalisation of mainline railways