Consider mapping to cells over rearranging input data
Consider mapping to cells over rearranging input data