Completed backwards sampling algorithm but still need to display data from it.