Implemented hat.