Changing application reduction to head-first

Tail first was rather peculiar