Removed some java functions so that there are fewer errors.