Changed the return type for row fetching