Setting a 2 sec timeout.