Added check to see if write is disabled