More debugging and pattern checks.