Added a loop to test the hat functionalities