Implement booking method for pattern matching.