Resolved closure capture issues by addressing capture through implicit variables.