Agree stages that match your costs
Try to set payment stages so that money comes in before your biggest outgoings, such as materials orders or subcontractor bills.
Manage retentions
Track every retention held against you, the date it is due back and who to chase. Put release dates in your diary.
Invoice on time, every time
Raise applications for payment on the agreed date and follow up the day after any payment is due.