Allow setting NP from input