Re-grouped functions in readwrite library for readability reasons.