Application: relay formation