Fixed the jar handling. Frankly, the parameters were not very explicit.