API compatible with old version