Added definition of ns_vec