Preliminary WIFi functions