Shortened function get_rows()