Code minimum of API sample. Not yet implemented.