Start of creating and sending patches. Handle joins and parts.