Adding previous api.