Control with flags, optimization.