Add patterns and transform data functions