Implemented the protocol for remote Train Transfer. Modified also res