New 'depth' function using the list of open modules