Renamed `output_aliases` to `output_keys`, added transmission code.