Updated to allocate correctly for ICON data