Store data when adding