Fixed where an error gets thrown if there's not enough data.