Enable users to alter the max depth (-D). Fix a bug with the output prefix.