Getting input data