Add N, g, k functions