Added logic to extract canal capital, now we have to implement it