Reuse defined flags
Merge pull request #4 from deees/fix/reuse_flags

Reuse defined flags