Ported to the last git revision of NerdzApi.java.