Adding support for optional function arguments.
Adding nwords function.