Incorporating TableAdapters, cleaning up functions, and debugging.