Refactoring and preparation for the reception of data through shared memory