Updated Script for phyal differences