How to undertake accounting and legal diligence?