Added support for hats