Adding npmls() function