Impelementation treating processes as a linked list, still duplication in receive blocks