Added: Option to global settings to change the number of iterations erd_depth does. Also changes to erd_depth to facilitate this dynamic parameter.