Add input data structure and functions which can convert data to bytes.