Define array_flag for deletion...not sure if this will break other things