Added RMI main to Master and Replica.