Perform an action on a 2D set of data