Update memory related functions