piggy: added flag parse.