Changed timeout dec to function for autodoc support