JavaDoc comments added.