Made it use statically allocated memory.