Fixed Program...Actually Works Now

Reconfigured the code and fixed major issue with the program. It now
works.