Added wifi reconnection mechanism with dictionary file