Increase default timeout and add set_timeout function