Replaced NELEMS with constant