Add list dependencies function