Removing uneeded flags