Added catch for no data points.