out_flags was being set but never used.