Added a relay command.

- Also ensure the inputs are casted into expected types.