Recursive -> iterative resources acquiring