Added a simple timeout option.