Parsing input data and initializing ride.