Relay constructor.