Adds the code for external attributes again that got lost in last PR.
Adds the code for external attributes again that got lost in last PR.

zorkow/speech-rule-engine,zorkow/speech-rule-engine,zorkow/speech-rule-engine