Got a little bit smarter with target dependencies.