Set timeout for waiting actions