Added decimate method.