Fixed data transfer issue by checking to see if data is of type result or action (set of results)