Return data frame instead of assigning to global environment