Found a better way get the data required.