More IO functions.