You could create a backend workflow for your invoices and required workflows. A timeout problem could be avoided. Maybe it helps.