ICAP Intermediate Commit

Wrote some code for filling the Advance allocation data.
TODO: Complete Advance allocation