Added while loop
Added internal NVAL_OK type to return instead of empty S-expression