Removed old initialization code from erd_depth, which is no longer necessary and actually quite dangerous (uses uninitialized values)