Iterator code Now working on Linux