A detailed comment here on the pattern matching strategy would be great so that the next person can more quickly decipher what is going on.