Updated the getData function of the row object. It now is a return value.