More groundwork. Added merging method, but it needs more work wrt channels.