Added a timeout for bot actions