Computing dependencies correctly