Changed all memory to static.