Rewiring to use a relay properly