Add timeout option for REST API