Add pattern to header