Add options for debug with old API