Better dynamic memory allocation and tracking.