Changes made to read blocks of bytes rather than reading byte by byte. This allows us to handle more events.