Rename variable has_read to has_readwrite for clarity