Finished implementation of Wifi connections