API break, the function needed the depth parameter