Added multi-threading so user input doens't hold up checking the network