Reduced the size of script