Updated export functions to include last value so that export has updated last value