Created a way to correctly get the rowID based on position.