Added flags support.