Start to rework *nix version towards iterator