Removed clearRelays function