Adding GDB Output if Segfault.
Refactor for connect on demand and creating module variables for
Iterator
Finish with tests