Processing the input data