Process input data