r19553: Add check for correct API usage.