Added code to handle submitting changes to the Nest API.