Fixed issue with Wifi crashing after a certain amount of time, no longer a static method