Add function that dumps device memory.