Set up function to clear data