Added beginning of wifly code