Add autoflags processing