Added active mode for then input