Changed executable script with latest changes
Added type conversion for output files