Add pattern loading