Rule reminder
Gerunds can express: TIME (mentre/quando), CAUSE (perché/poiché), CONDITION (se), CONCESSION (pur + gerund = nonostante), MANNER (come/nel modo di).
'Lavorando tanto, ha guadagnato molto.' What does the gerund express?