Fixed binning, Added isdata int