Programs: Add support for preventing loss of changes