Add the getRelayState method