Faster version of Hatter.