Data pattern processing