Fixed logic issue concerning index input.
Fixed logic issue concerning index input.
Updated tar ball package.