Fixed nil class error on puting debug info
Made IP allocation/deallocation configurable