Added depth as a command line argument.