Added missing getNextArg() calls. Fixes #2.