Initializing memory works