Add dependency tracking code