Navaid production: do the loop more sensibly, with a 'for' instead of 'while'