Added Java and Python versions.