Add some kind of runtime storage.

Not yet complete, but shows how it is going to work.