You can use a head to recognize patterns.