Thanks for this, was having problems with NPC dialogues and this worked for me.