added echo test
Added relay function