Remove useless priv modifiers, update the attribute syntax.