-Overhauled the main code to be in its own thread loop