Work on Java version and remove uneeded Bash calculations.