Removed unnecessary array allocation.