Fetching histograms and samples