Various read / write stuff.