Controlling access to the relay