Adding some position-related IO functions.