Removed AP from output and it now closes $iw_output