Adding dest and proto selection for gen.py