Added *_npc_trait functions.