Got loading to and from memory working.