in reply to Question about hashes
I think this is all you need:
The previous keys/values are preserved - you don't have to add them again each time.
This will help you to find out what's up with $text: