Added memory access functions.