Dynamic allocation implemented.