Merge the protocol into the main file