Moved DDManager to separate file