Create function to pull column information from each row.