Added debugging for inputs.