Updated minimized version of script.