Take no elements when number is negative or unspecified.

- Also minor Refactoring on the jop code.