Added flag interaction with commands