Updates flag with better messaging.