Add response timeout functionality.