How does a Relay Work