Adding some validations to Debug.