Some sanity/security check when performing updates