Refactor write return variable name to be consistent with read