Imported old API prototype as a base.