Added useMeanX flag to binningx0dt