added functionality to delay typing.