Get memory writes working