Java version also works.