Added a timeout for all commands, default 10 seconds.