Added pattern matching pricing algorithm.