Modifying MAXNODE for libderiv.