Completed pattern matching.