Moved processOption out of the loop.