Removed "hat" dependency