Set background of input and output at start time.