`prev_np` is not required. Rename it to `np` here.