Move the npcID out to a function again for further validation