Made "getNextID()" private.