Added dgen script.