Extracted waiting for end of block processing into dedicated function.