Added support for multiple flags