Updating and adding samples