Same comments as on the expansion strategy: maybe rename 'result' and move to the end