Then an idea came upon them. Thor would dress up like Freyja and go to Thyrm and pretend to be her. They went over there and ate a feast and then Thyrm was ready to marry Freyja. Right as he was ready, Thor broke out of the costume and grabbed his hammer and killed Thyrm, and retained his hammer.