Use malloc instead of static array.