Flag support implemented...

-order bug fixed