Using endpType variable on Plan.py