Remove temporary files.
Update protocols and add new protocol.