Compile data an read it

I am not familiar with dependencies calculation, maybe you can refer how shards command do it, following post probably will help too.