detectProperInput() slightly updated