Change 'rw' to 'r+'