Making the ez script more flexible and extendible