Finished some memory stuff