Update relay.cpp