Add timer to input and add logic