Operation of rail freight terminals