Implement more methods in Java API.