Added possibility to save the protocol to local storage