Chritopher's updates to use Relays and eMagnet