Add set_timeout and get_timeout methods