left/right_index should be populated
deprecate() should be imported (Thank you Harpreet !)