Imported memory.h from ric_dev