Made it possible to give timeout as argument.

.. default to 10 seconds as before.