Update memory automatically and manually

Revert to automatically update memory and then allow users to update memory as and when deemed necessary