PetPlugin: standartize command processing.