Improvements to ntask impl.
Merge pull request #24 from iuj/master

Improvements to ntask impl.