Adding initial version of the w memory.