added timeout option for command