Added dot generator code