Added timeout handler and remove element.
Remove element