Collecting data from the sketch