Adding NPC framework