Add timeout for commands