Add MasterServiceAgent and Slave Ready Code