Removed agentTimeout variable - not used.