Added check to try and not resolve dependencies that have already been resolved