Added dependency checks based on security groups dependencies.