Added logical OR operation to resample.