Wrap 'it' in inner func to preserve variable.