Added option to turn off spatial binning, thanks to David Kaumanns!