Added "-w" argument and removed unused variable.