Cleaned JavaFunctions class.