Started 'AllocateMemory' method (haven't tested)