Added Stop Button functionality and Multi Threading throughout the program