Got some working hat store functionality