Automatic dependency engine